export const option = that => {
  return {
    align: 'center',
    menuAlign: 'center',
    border: true,
    delBtn: false,
    editBtn: false,
    addBtn: false,
    refreshBtn: false,
    columnBtn: false,
    menu: false,
    expand: true,
    rowKey: 'id',
    column: [{
      label: that.$t('common.action'),
      prop: 'index',
      slot: true,
      width: 105,
      align: 'right'
    }, {
      label: that.$t('systemManagement.classPropertyName'),
      prop: 'className'
    }, {
      label: that.$t('systemManagement.isVariant'),
      prop: 'isVariant',
      type: 'select',
      dicData: [{
        label: that.$t('yesText'),
        value: 1
      }, {
        label: that.$t('noText'),
        value: 0
      }]
    }, {
      label: that.$t('uploadFile.img'),
      prop: 'filePath',
      slot: true
    }, {
      label: that.$t('systemManagement.remark'),
      prop: 'remark'
    }]
  }
}

export const exOption = that => {
  return {
    align: 'center',
    menuAlign: 'center',
    border: true,
    delBtn: false,
    editBtn: false,
    addBtn: false,
    refreshBtn: false,
    columnBtn: false,
    menu: false,
    column: [{
      label: that.$t('systemManagement.fieldCode'),
      prop: 'fieldCode'
    }, {
      label: that.$t('common.key'),
      prop: 'fieldName',
      slot: true
    }, {
      label: that.$t('common.value'),
      prop: 'fieldVal',
      slot: true
    }]
  }
}

export const classOption = that => {
  return {
    align: 'center',
    menuAlign: 'center',
    border: true,
    delBtn: false,
    editBtn: false,
    addBtn: false,
    refreshBtn: false,
    columnBtn: false,
    menu: false,
    highlightCurrentRow: true,
    column: [{
      label: that.$t('systemManagement.classPropertyName'),
      prop: 'className'
    }, {
      label: that.$t('systemManagement.isVariant'),
      prop: 'isVariant',
      type: 'select',
      dicData: [{
        label: that.$t('yesText'),
        value: 1
      }, {
        label: that.$t('noText'),
        value: 0
      }]
    }, {
      label: that.$t('systemManagement.remark'),
      prop: 'remark'
    }]
  }
}
